﻿<Window x:Class="Reactor.MiniManager.Views.CoreDetailsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:Views="clr-namespace:Reactor.MiniManager.Views" 
        xmlns:ViewModels="clr-namespace:Reactor.MiniManager.ViewModels" 
        Title="" Height="400" Width="600">
    <Window.Resources>
        <ResourceDictionary>
            <DataTemplate DataType="{x:Type ViewModels:BusDiagnosticsViewModel}">
                <Views:BusDiagnosticsView />
            </DataTemplate>

            <DataTemplate DataType="{x:Type ViewModels:CoreServicesViewModel}">
                <Views:CoreServicesView />
            </DataTemplate>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <TabControl>
            <TabItem>
                <TabItem.Header>
                    <TextBlock Text="Summary" />
                </TabItem.Header>
                <TabItem.Content>
                    <Views:CoreSummaryView />
                </TabItem.Content>
            </TabItem>

            <TabItem Content="{Binding ServicesViewModel}">
                <TabItem.Header>
                    <TextBlock Text="Services" />
                </TabItem.Header>
            </TabItem>

            <TabItem Content="{Binding DiagnosticsViewModel}">
                <TabItem.Header>
                    <TextBlock Text="Service Bus Diagnostics" />
                </TabItem.Header>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
